package com.easywork.mystery.rpc;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.easywork.mystery.entity.SysUser;
import com.easywork.mystery.fallback.MyFallbackFactory;

@FeignClient(name = "mystery-app-sso", url = "120.77.245.28:8081", fallbackFactory = MyFallbackFactory.class)
public interface DemoService {
	@RequestMapping("/mystery/SysUser/getSysUser")
	@ResponseBody
	public SysUser getSysUser(@RequestParam("ssoid") String id, @RequestParam("ssotoken") String token);

	@RequestMapping("/mystery/SysUser/getSysUserByAccount")
	@ResponseBody
	public SysUser getSysUserByAccount(@RequestParam("account") String account, @RequestParam("ssotoken") String token);
}